package m.base.util;

import com.alibaba.fastjson.JSONObject;
import m.system.exception.MException;
import m.system.util.JSONMessage;
import m.system.util.ObjectUtil;

import java.util.ArrayList;
import java.util.List;

public class GoodsParam {
    protected GoodsParam(){
        this.attrList=new ArrayList<>();
    }
    private String goodsName;
    private String typeName;
    private String factoryName;
    private List<JSONMessage> attrList;
    public String toAttrJson() throws MException {
        return ObjectUtil.toString(attrList);
    }

    public List<JSONMessage> getAttrList() {
        return attrList;
    }

    public void setAttrList(List<JSONMessage> attrList) {
        this.attrList = attrList;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

}
